var koa = require('koa')
var cors = require('koa-cors')
var app = koa()

app.use(cors())

var blogRouter = require('./router/blog')
var essenceRouter = require('./router/essence')

app.use(blogRouter.routes())
app.use(essenceRouter.routes())

app.listen(3000)